import request from '@/utils/request'

export function getBlogSortList(params) {
  return request({
    url: process.env.WEB_API + '/classify/getBlogSortList',
    method: 'get',
    params
  })
}

export function getArticleByBlogSortUid(params) {
  return request({
    url: process.env.WEB_API + '/classify/getArticleByBlogSortUid',
    method: 'get',
    params
  })
}

export function getNewsById(newsId){
  return request({
    url: '/cms/class/getNews/'+newsId,
    method: 'get'
  })
}

export function getClasslistById(classlistId){
  return request({
    url: '/cms/class/getClasslistById/'+classlistId,
    method: 'get'
  })
}


export function getNewsByKeywords(params){
  return request({
    url: '/cms/class/getNewsByKeywords',
    method: 'get',
    params
  })
}